tvariable $cr1
tvariable $cr2
tvariable $cr3
tvariable $cz1
tvariable $cz2
tvariable $cz3
tvariable $go
tvariable $go1
tvariable $go2
tvariable $go3

trace tcp_input.c:4864
  commands
    teval $go=1
  end

trace __tcp_select_window if ($go)
  commands
    teval $go1=1
  end

trace tcp_output.c:1749 if ($go)
  commands
    teval $go2=1
  end

trace tcp_output.c:1754 if ($go)
  commands
    teval $go3=1
  end

trace tcp_send_ack if ($go1)
  commands
  teval $cr1=$cr1+1
  end
trace tcp_send_ack if ($go2)
  commands
  teval $cr2=$cr2+1
  end
trace tcp_send_ack if ($go3)
  commands
  teval $cr3=$cr3+1
  end

trace tcp_send_delayed_ack if ($go1)
  commands
  teval $cz1=$cz1+1
  end
trace tcp_send_delayed_ack if ($go2)
  commands
  teval $cz2=$cz2+1
  end
trace tcp_send_delayed_ack if ($go3)
  commands
  teval $cz3=$cz3+1
  end

tvariable $cr
list e1000_receive_skb
trace 774
  commands
    teval $go=0
    teval $go1=0
    teval $go2=0
    teval $go3=0
    teval $cr=$cr+1
  end

tvariable $c
trace sock_rfree
commands
  teval $c=$c+1
  end

define showall
  p $c
  p $cr1
  p $cr2
  p $cr3
  p $cz1
  p $cz2
  p $cz3
end
